|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Macros | |
| #define | BAUD_RATE 9600 |
| #define | TRANSMIT_DATA_COUNT 0x03 |
| #define | USCI_A_UART_MULTIPROCESSOR_MODE_ADDRESS 0xAA |
Functions | |
| void | main (void) |
| void | USCI_A0_ISR (void) |
Variables | |
| uint8_t | receivedData = 0x00 |
| uint8_t | transmitData = 0x00 |
| uint8_t | transmitDataCount = TRANSMIT_DATA_COUNT |
| #define BAUD_RATE 9600 |
This example shows how to configure the UART module to send data in auto baudrate detection mode. To echo a received character, RX ISR is used.
MSP430F5438A
-----------------
/|\| |
| | |
--|RST |
| |
| P3.4/UCA0TXD|------------>
| | 9600
| P3.5/UCA0RXD|<------------
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 62 of file usci_a_uart_ex3_autoBaudrateDetectionTX.c.
| #define TRANSMIT_DATA_COUNT 0x03 |
Definition at line 63 of file usci_a_uart_ex3_autoBaudrateDetectionTX.c.
| #define USCI_A_UART_MULTIPROCESSOR_MODE_ADDRESS 0xAA |
Definition at line 64 of file usci_a_uart_ex3_autoBaudrateDetectionTX.c.
| void main | ( | void | ) |
Definition at line 69 of file usci_a_uart_ex3_autoBaudrateDetectionTX.c.
References __no_operation(), param, STATUS_FAIL, transmitData, and transmitDataCount.
| void USCI_A0_ISR | ( | void | ) |
Definition at line 134 of file usci_a_uart_ex3_autoBaudrateDetectionTX.c.
References receivedData, TRANSMIT_DATA_COUNT, transmitData, and transmitDataCount.
| uint8_t receivedData = 0x00 |
Definition at line 66 of file usci_a_uart_ex3_autoBaudrateDetectionTX.c.
Referenced by USCI_A0_ISR().
| uint8_t transmitData = 0x00 |
Definition at line 66 of file usci_a_uart_ex3_autoBaudrateDetectionTX.c.
Referenced by main(), and USCI_A0_ISR().
| uint8_t transmitDataCount = TRANSMIT_DATA_COUNT |
Definition at line 67 of file usci_a_uart_ex3_autoBaudrateDetectionTX.c.
Referenced by main(), and USCI_A0_ISR().